<div id="content">
	<div id="job_history">
		Recent viewed jobs:
		<ul>
		</ul>
	</div>
	<div class="content">
		<div id="jobs">
			<table class="jobs">
				<tbody>
					<tr>
						<th><?php echo $this->Paginator->sort('name');?>
						</th>
						<th><?php echo $this->Paginator->sort('position');?>
						</th>
						<th><?php echo $this->Paginator->sort('company');?>
						</th>
					</tr>
					<?php
					$i = 0;
					foreach ($jobs as $job):
					$class = null;
					if ($i++ % 2 == 0) {
						$class = ' class="even"';
					}else{
						$class = ' class="odd"';
					}
					?>
					<tr <?php echo $class;?>>
						<td class="location"><?php echo $job['Job']['name']; ?>&nbsp;</td>
						<td class="position"><?php echo $this->Html->link($job['Job']['position'], array('controller' => 'Jobs', 'action' => 'view', $job['Job']['id'])); ?>
						</td>
						<td class="company"><?php echo $job['Job']['company']; ?>
						</td>
					</tr>
					<?php endforeach; ?>
				</tbody>
			</table>
			<p>
			<?php
			echo $this->Paginator->counter(array(
				'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
			));
			?>
			</p>

			<div class="paging">
			<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
				|
				<?php echo $this->Paginator->numbers();?>
				|
				<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
			</div>
		</div>
	</div>
</div>
